module
    .constant('Template', '<div id="qiniu-container">' +
    '<div ng-controller="qiniuGalleryCtrl" class="wx-modal wx-hide wx-gallery">' +
        '<div class="wx-modal-bg">' +
            '<div class="wx-modal-box">' +
                '<header class="wx-modal-header">选择图片</header>' +
                '<section class="wx-modal-section">' +
                    '<div class="wx-modal-search">' +
                        '<input type="text" placeholder="搜索图片" ng-model="search"/>' +
                    '</div>' +
                    '<div class="wx-lists">' +
                        '<ul>' +
                            '<li ng-click="select($index, $event)" ng-repeat="image in images | filter:search" class="wx-list">' +
                                '<span class="wx-list-cover"></span>' +
                                '<div class="wx-img-wrap"><img ng-src="{{image.url}}?imageView2/2/w/100" alt=""/></div>' +
                            '</li>' +
                        '</ul>' +
                    '</div>' +
                '</section>' +
                '<footer class="wx-modal-footer">' +
                    '<div class="wx-modal-panel wx-fr">' +
                        '<button class="wx-btn info" ng-click="goToUpload()">本地上传</button>' +
                    '</div>' +
                    '<div class="wx-modal-panel wx-fr">' +
                        '<button ng-disabled="!confirmAble" class="wx-btn success" ng-click="confirm()">确定</button>' +
                        '<button class="wx-btn danger" ng-click="close()">取消</button>' +
                    '</div>' +
                '</footer>' +
            '</div>' +
        '</div>' +
    '</div>' +

    '<div ng-controller="qiniuUploaderCtrl" class="wx-modal wx-hide wx-uploader">' +
        '<div class="wx-modal-bg">' +
            '<div class="wx-modal-box">' +
                '<header class="wx-modal-header">上传图片</header>' +
                '<section class="wx-modal-section">' +
                    '<span class="wx-progress"></span>' +
                    '<div class="wx-lists">' +
                        '<ul>' +
                            '<li id="wx-picker" ng-show="status == \'queue\'">' +
                                '<span class="wx-list-cover"></span>' +
                                '<span class="wx-list-delete"></span>' +
                                '<img src="http://weazm-cdn.qiniudn.com/add.png" alt=""/>' +
                            '</li>' +
                            '<li class="wx-list upload-item" ng-click="select($index, $event)" ng-repeat="image in files">' +
                                '<span class="wx-list-cover"></span>' +
                                '<span ng-if="status == \'uploading\'" class="wx-list-uploaded">{{image.percentage}}%</span>' +
                                '<span class="wx-list-delete" ng-if="status == \'queue\'" ng-click="remove($index)"></span>' +
                                '<span class="wx-img-wrap"><img ng-src="{{image.src}}" alt=""/></span>' +
                            '</li>' +
                        '</ul>' +
                    '</div>' +
                    '<div class="wx-dnd">拖拽到这里上传' +
                    '</div>' +
                '</section>' +
                '<footer class="wx-modal-footer">' +
                    '<div class="wx-modal-panel wx-fr">' +
                        '<button class="wx-btn info" ng-if="status == \'queue\' || status == \'success\'" ng-click="goToGallery()">返回图库</button>' +
                    '</div>' +
                    '<div class="wx-modal-panel wx-fr">' +
                        '<button class="wx-btn success" ng-if="status == \'queue\' && files.length > 0" ng-click="startUpload()">开始上传</button>' +
                        '<button class="wx-btn danger" ng-if="status == \'uploading\'" ng-click="cancelUpload()" >取消上传</button>' +
                        '<button class="wx-btn success" ng-if="status == \'success\'" ng-click="reset()" ng-disabled="files.length <= 0">继续上传</button>' +
                        '<button class="wx-btn danger" ng-if="status == \'queue\'" ng-click="close()">取消</button>' +
                    '</div>' +
                '</footer>' +
            '</div>' +
        '</div>' +
    '</div>' +
'</div>');